﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Xml;
using System.Xml.Serialization;

using Twilio.TwilML.BaseTypes;

namespace Twilio.TwilML
{
    public class Play : GatherVerb
    {
        [XmlAttribute("loop"), DefaultValue(1)]
        public int Loop { get; set; }

        [XmlText]
        public string Url { get; set; }

        public Play()
        {
            Loop = 1;
        }

        public Play(string url) : this()
        {
            Url = url;
        }
    }
}
